﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MixScript.BLL.FI
{
    public class cCenter : cBaseBLL
    {

        public cCenter()
        { }

        public bool Insert(String Code, String Name)
        {
            try
            {

                string sSQL = @"insert into mst_center VALUES('{0}','{1}')";
                Dbserver.ExecuteScalar(string.Format(sSQL, Code, Name));
                return true;
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
        public bool Update(String Code, String Name)
        {
            try
            {

                string sSQL = @"update mst_center set CENTERNAME = '{1}' where CENTERNUM ='{0}'";
                Dbserver.ExecuteScalar(string.Format(sSQL, Code, Name));
                return true;
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }

    }
}
